ToArray Method

Task Parallel System.Threading

Copies the items stored in the ConcurrentStack<(Of <(T>)>) to a new array.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Function ToArray As T()
C#
public T[] ToArray()

Return Value

A new array containing a snapshot of elements copied from the ConcurrentStack<(Of <(T>)>).

See Also